package com.hae.shop.order.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 订单创建请求
 */
@ApiModel(value = "订单创建请求")
@Data
public class OrderReqDto {

    /**
     * 用户Id
     */
    @NotBlank
    @ApiModelProperty(value = "用户Id")
    private String userId;

    /**
     * 商品Id
     */
    @NotBlank
    @ApiModelProperty(value = "商品Id")
    private String goodId;

    /**
     * 联系电话
     */
    @NotBlank
    @ApiModelProperty(value = "联系电话")
    private String mobile;

    /**
     * 收件地址
     */
    @NotBlank
    @ApiModelProperty(value = "收件地址")
    private String addr;

    /**
     * 商品数量
     */
    @NotNull
    @ApiModelProperty(value = "商品数量")
    private int goodAmout;

    /**
     * 订单总额
     */
    @NotNull
    @ApiModelProperty(value = "订单总额")
    private Double payAmount;
}
